<%@include file="template/configuration.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<% pageContext.setAttribute("newLineChar", "\n"); %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
            ${website} || ${title}
        </title>
        ${stylesheet}
        ${jquery}
    </head>
    <body>
        <div class="container">
            <%@include file="template/header.jsp" %>
            <div class="content">
                <c:forEach items="${page}" var="p">
                    <c:if test="${sessionScope.userrole == 'Administrator'}">
                        <div class="edit">
                            <a href="${url}ManagePage?edit=${p.id}"><img src="${url}images/edit.png" border="0" /></a>
                        </div>
                    </c:if>
                    <h1>${p.title}</h1>
                    ${fn:replace(p.content, newLineChar, "<br />")}
                </c:forEach>
            </div>
            <%@include file="template/footer.jsp" %>
        </div>
    </body>
</html>
